﻿using FairyGUI;

/// <summary>
/// 局数选择
/// </summary>
public class UICreateRoom_RoundSel {

    GComponent _roundSelCtrl;

    public UICreateRoom_RoundSel(GComponent comp)
    {
        _roundSelCtrl = comp;
    }

    public int round {
        get {
            if (_roundSelCtrl.GetChild("局数6").asButton.selected)
            {
                return 6;
            }
            if (_roundSelCtrl.GetChild("局数10").asButton.selected)
            {
                return 10;
            }
            if (_roundSelCtrl.GetChild("局数16").asButton.selected)
            {
                return 16;
            }
            return 6;
        }
    }
}
